package com.qipay.sp.excutor.single;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import com.qipay.sp.excutor.yitong.YtAlipayWapExcutor;
import com.qipay.sp.excutor.yitong.YtWxNativeExcutor;
import com.qipay.sp.excutor.yitong.YtWxTradeQueryExcutor;
import com.qipay.sp.excutor.yitong.YtWxWapExcutor;
import org.springframework.stereotype.Component;

@Component
public class SingleFactory implements ExcutorFactory {
    @Override
    public AbstractExcutor createAlipayNativeExcutor() {
        return (SingleAlipayNativeExcutor) SpringContextUtil.getBean(SingleAlipayNativeExcutor.class);
    };

    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (SingleAlipayWapExcutor) SpringContextUtil.getBean(SingleAlipayWapExcutor.class);
    };
}
